﻿using JaasExportExcel.Views;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace JaasExportManager
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            MainFrame.Content = new HomePage(); // 默认页
        }

        private void Home_Click(object sender, RoutedEventArgs e)
        {
            MainFrame.Content = new HomePage();
        }

        private void Export_Click(object sender, RoutedEventArgs e)
        {
            MainFrame.Content = new ExportPage();
        }

        private void Mqtt_Click(object sender, RoutedEventArgs e)
        {
            MainFrame.Content = new MqttPage();
        }
    }
}